﻿using Autofac;
using AutomatedAcceptanceTests.IOC;

namespace AutomatedAcceptanceTests.WorkFlows
{
    public class BaseWorkFlow
    {
        private IContainer _container;

        public BaseWorkFlow()
        {
            if (_container == null)
            {
                _container = InitAutofac.Init();
            }
        }

        protected T Resolve<T>()
        {
            return _container.Resolve<T>();
        }


    }
}